package com.zuo.demo01.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Catagory {

    private Integer id;
    private String name;
    private Integer rank;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Override
    public String toString() {
        return "Catagory{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", rank=" + rank +
                ", createTime=" + createTime +
                '}';
    }

    public Catagory() {
    }

    public Catagory(Integer id, String name, Integer rank) {
        this.id = id;
        this.name = name;
        this.rank = rank;
    }

    public Catagory(Integer id, String name, Integer rank, Date createTime) {
        this.id = id;
        this.name = name;
        this.rank = rank;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
